
import edu.wpi.first.smartdashboard.gui.StaticWidget;
import edu.wpi.first.smartdashboard.properties.Property;
import edu.wpi.first.smartdashboard.robot.Robot;
import edu.wpi.first.wpilibj.networking.NetworkAdditionListener;
import edu.wpi.first.wpilibj.networking.NetworkListener;
import edu.wpi.first.wpilibj.networking.NetworkTable;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.LinkedHashMap;
import java.util.Map;
import javax.swing.*;
import javax.swing.table.AbstractTableModel;
/*
 * To change this template, choose Tools | Templates and open the template in
 * the editor.
 */

/**
 *
 * @author Franklin
 */
public class TargetButtons extends StaticWidget {

    private JButton Over;
    private JButton FarOver;
    private JButton Under;
    private JButton FarUnder;
    private JButton RightON;
    private JButton Fire;

    @Override
    public void init() {
        Over = new JButton("Over");
        Over.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent e) {
            }
        });
        FarOver = new JButton("Far Over");
        FarOver.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent e) {
            }
        });
        Under = new JButton("Under");
        Under.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent e) {
            }
        });
        FarUnder = new JButton("Far Under");
        FarUnder.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent e) {
            }
        });
        RightON = new JButton("Went In");
        RightON.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent e) {
            }
        });

        JPanel buttonPanel = new JPanel();
        buttonPanel.setLayout(new GridLayout(0, 1));
        buttonPanel.add(Over);
        buttonPanel.add(FarOver);
        buttonPanel.add(Under);
        buttonPanel.add(FarUnder);
        buttonPanel.add(RightON);
        setLayout(new BorderLayout());
        add(buttonPanel, BorderLayout.SOUTH);

    }

    @Override
    public void propertyChanged(edu.wpi.first.smartdashboard.properties.Property prprt) {
//        throw new UnsupportedOperationException("Not supported yet.");
    }
}
